<?php
/*
+--------------------------------------------------------------------------
|   AffiliStore 2
|   ========================================
|   Web: http://www.affilistore.com
|   Email: admin (at) affilistore (dot) com
|	License Type: AffiliStore 2 is NOT open source software and limitations apply 
|   Licence Info: Visit AffiliStore website and click on 'Licence'
+--------------------------------------------------------------------------
*/
error_reporting(E_ALL ^ E_NOTICE);
set_include_path(PATH_SEPARATOR . dirname(dirname(realpath(__FILE__))) . '/' . 'classes/' . 
				 PATH_SEPARATOR . dirname(realpath(__FILE__)) . '/' );

// for auth redirection
$adminPage = dirname($_SERVER["PHP_SELF"]);

require_once('../includes/connect.php');
require_once('../includes/functions.php');
require_once('includes/headUserPanel.inc.php');

include_once '../includes/models/Auth.php';
$auth = Auth::getInstance();

if (!$auth->hasIdentity()) {
	header('Location: ../index.php?case=account&act=login');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" href="../admin/css/admin.css" type="text/css" />
<title>ShopnMatch User Panel</title>
</head>

<body>
<div id="pageSurround">
<div id="logo"><a href="<?php echo $installDir['value']?>"><img src="<?php echo $logoImage['value'] ?>" alt="ShopnMatch" width="220" height="60" /></a></div>

<?php 
if ($auth->hasIdentity()) {
	include('includes/signedinUserPanel.inc.php');
}
?>
</div>
</body>
</html>